package com.onemore.task.model;

import java.sql.SQLException;
import java.util.ArrayList;
import java.util.List;
import java.util.Map;

import org.voovan.tools.log.Logger;

import com.alibaba.fastjson.JSONObject;
import com.onemore.task.JdbcGlobal;

public class ModelSpjhdmx extends JdbcGlobal{
	final static private String spjhdmx_field[] = new String[] {"DJBH","MIBH","MXBH",
    		"SPDM","GG1DM","GG2DM","SL","SL_2","CKJ","ZK","DJ","DJ_1","DJ_3","JE","HH",
    		"BZ","BYZD1","BYZD3","BYZD4","BYZD8","BYZD9","BYZD10","BYZD12","BYZD13"};
	/**
	 * 从数据库获取进货单数据
	 * @param DJBH
	 * @return
	 * @throws SQLException
	 */
	static public List<Map<String, Object>> getList(String DJBH) throws SQLException
    {
    	String sql = "";
        //查询测试
        sql = "select * from SPJHDMX where DJBH='"+DJBH+"'";
    	if(DJBH == null || DJBH =="") {
            Logger.error(sql);
    	}
        List<Map<String, Object>> manyMaps = null;
		manyMaps = getJdbcOperate().queryMapList(sql);
		return manyMaps;
    }
}
